<html>
<head>
	<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.js"></script>
	<link rel="Stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/redmond/jquery-ui.css" />
	<script src="/classicasp/scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="/classicasp/scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="/classicasp/scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
   <script src="/classicasp/scripts/jquery.validate.min.js" type="text/javascript"></script>
	<style>
		/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}

/* Styles for editor and display helpers
----------------------------------------------------------*/
.display-label, 
.editor-label {
    margin: 1em 0 0 0;
}

.display-field, 
.editor-field {
    margin: 0.5em 0 0 0;
}

.text-box {
    width: 30em;
}

.text-box.multi-line {
    height: 6.5em;
}

.tri-state {
    width: 6em;
}
	</style>
</head>
<body>

<% html.beginForm(function() {%>
	<%=html.textBoxFor("FirstName", function(m) { return m.FirstName; })%>
	<%=html.validationMessageFor("FirstName", function(m) { return m.FirstName; })%>

	<%=html.textBoxFor("LastName", function(m) { return m.LastName; })%>
	<%=html.validationMessageFor("LastName", function(m) { return m.FirstName; })%>

	<%=html.textBoxFor("Age", function(m) { return m.Age; })%>
	<%=html.validationMessageFor("Age", function(m) { return m.Age; })%>

	<input type="submit" />
<% }); %>
<%=html.enableClientValidation()%>
</body>
</html>